package com.ztesoft.report.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.ztesoft.report.base.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author y3tu
 * @since 2018-07-25
 */
@TableName("report_user_role")
@Data
public class ReportUserRole extends BaseEntity<Long> {

	private static final long serialVersionUID = 1L;

	/**
	 * 报表id
	 */
	@TableField("report_id")
	private String reportId;
	/**
	 * 用户ID
	 */
	@TableField("user_id")
	private String userId;
	/**
	 * 角色ID
	 */
	@TableField("role_id")
	private String roleId;
	/**
	 * 创建人
	 */
	@TableField("create_user")
	private String createUser;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Date createTime;
	/**
	 * 更新人
	 */
	@TableField("update_user")
	private String updateUser;
	/**
	 * 更新时间
	 */
	@TableField("update_time")
	private Date updateTime;

	@Override
	protected Serializable pkVal() {
		return this.reportId;
	}

	@Override
	public String toString() {
		return "ReportUserRole{" +
				", reportId=" + reportId +
				", userId=" + userId +
				", roleId=" + roleId +
				", createUser=" + createUser +
				", createTime=" + createTime +
				", updateUser=" + updateUser +
				", updateTime=" + updateTime +
				"}";
	}
}
